/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.tattoo.workflow.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author 杨翼
 * @since 1.0
 */
@Data
@ApiModel(value = "审批请求DTO")
public class ApproveReq {
    /**
     * 申请单id
     */
    @NotNull(message = "id is required")
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 审批选项
     */
    @NotNull(message = "operate is required")
    @ApiModelProperty(value = "审批选项")
    private Integer operate;

    /**
     * 处理意见
     */
    @ApiModelProperty(value = "处理意见")
    private String comment;
}
